#include <string.h>
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    char *from = "123456";
    char *to = malloc(50);
    to = strdup(from);
    printf("from = %s\n", from);
    printf("to = %s\n", to);
    return 0;
}
